using UnityEngine;
using UnityEngine.UI;
using QFramework;
using UnityEngine.SceneManagement;

namespace Projectsurviva
{
    public class UiGameOverpanelData : UIPanelData
    {
    }
    public partial class UiGameOverpanel : UIPanel
    {
        protected override void OnInit(IUIData uiData = null)
        {
            mData = uiData as UiGameOverpanelData ?? new UiGameOverpanelData();
          
            btnbacktostart.onClick.AddListener(() => 
            {
                this.CloseSelf();
                SceneManager.LoadScene("GameStart");
            });
            // please add init code here
        }

        protected override void OnOpen(IUIData uiData = null)
        {
        }

        protected override void OnShow()
        {
        }

        protected override void OnHide()
        {
        }

        protected override void OnClose()
        {
        }
    }
}
